namespace A{


   export class Animal{
        name: string;
        age: number;
        constructor(name: string, age: number) {
            this.name = name;
            this.age = age;
        }
        eat() {
            console.log('吃吃吃');
        }
    }

}
namespace B{


    export class Animal{
         name: string;
         age: number;
         constructor(name: string, age: number) {
             this.name = name;
             this.age = age;
         }
         eat() {
             console.log('喝喝喝');
         }
     }
 
 }
 export {A,B}